package com.visu;

/**
 * Created by admin on 2017/5/22.
 */
public class Constants {
    /**
     * jwt
     */
    public static final String JWT_SECRET = "7786df7fc3a34e26a61c034d5ec8245d";
    public static final Long JWT_TTL = 12*60*60*1000L;  //millisecond
    public static final Long JWT_REFRESH_TTL = 12*60*60*1000L;  //millisecond

    /**
     * kaptcha
     */
    public static final String KAPTCHA_CACHE_KEY = "kaptchaKey";
    public static final String KAPTCHA_CACHE_NAME = "kaptchaCache";

    public static final Integer PAGE_SIZE = 20;

    // 用户初始化密码
    public static final String INIT_PASSWORD = "000000";

    /**
     * error code
     */
    public static final int OK = 1000;
    public static final int FAIL = 4000;
    public static final int NO_PERMISSION = 4001;
    public static final int TOKEN_INVALID = 4003;
    public static final int SERVER_ERROR = 5000;

    public static final String ERROR_LOGIN_MSG = "您的账号在异地登录";
    public static final String ERROR_PARAM_MSG = "参数错误";
    public static final String ERROR_SERVER_MSG = "操作失败";
    public static final String ERROR_PERM_MSG = "无权访问";

    /**
     * 表具序列号开始值
     */
    public static final Long SERIAL_NUM = 100000L;
}
